<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .shuoshuo-enter{
        opacity: 0;
    }
    .shuoshuo-enter-to{
        opacity: 1;
    }
    .shuoshuo-enter-active{
        transition: all 5s;
        animation: anima 5s;
    }
    @keyframes anima{
        0%{
            transform: translateY(0px) scale(0);
        }
        50%{
            transform: translateY(100px) scale(1);
        }
        100%{
            transform: translateY(100px) scale(2);
        }
    }
</style>
<body>
    <div id="app">
        <button @click="flag=!flag">显示隐藏</button>
        <transition name="shuoshuo">
            <p v-show="flag">{{msg}}</p>
        </transition>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        let vm = new Vue({
            el:'#app',
            data:{
                msg:'台球老王子',
                flag:true
            }
        })
    </script>
</body>
</html>